# coding gbk
from kivy.properties import ObjectProperty
from kivy.uix.screenmanager import Screen
import sqlite3


class CreateAccountWindow(Screen):
    name = ObjectProperty(None)
    email = ObjectProperty(None)
    passwd = ObjectProperty(None)

    def submit(self):
        if self.name.text != "" and self.email.text != "" and self.email.count("@") == 1 and self.email.text.count(".") > 0:
            if self.passwd != "":
                #jdbc:sqlite:identifier.sqlite
                #identifier.sqlite
                conn = sqlite3.connect('identifier.sqlite')